function eTool(formclass,dataJson,separator){
    this.formclass = formclass;
    this.dataJson = dataJson;
    this.separator = separator || ",";
    if(typeof this.voluation != 'function'){
        eTool.prototype.voluation = function(){
            var form = $("."+this.formclass);
            if(form.length>0){
                form = $(form[0]);
                var formParts,singleFormPart,tagName;
                for(var x in this.dataJson){
                    formParts = form.find($("*[name="+x+"]"));
                    if(formParts.length>0){
                        singleFormPart = $(formParts[0]);
                        tagName = singleFormPart.context.tagName;
                        if(tagName.toUpperCase()=="INPUT" && singleFormPart.context.type.toUpperCase()=="RADIO"){
                            this.voluationRadio(x,formParts);
                        }else if(tagName.toUpperCase()=="INPUT" && singleFormPart.context.type.toUpperCase()=="CHECKBOX"){
                            this.voluationCheckBox(x,formParts);
                        }else{
                            singleFormPart.val(this.dataJson[x]);
                        }
                    }
                }
            }
        }
    }
    if(typeof this.voluationRadio != 'function'){
        eTool.prototype.voluationRadio = function(x,formParts){
            for(var i=0;i<formParts.length;i++){
                var singleFormPart = $(formParts[i]);
                if(singleFormPart.val()==this.dataJson[x]){
                    singleFormPart.attr('checked','true')
                }
            }
        }
    }
    if(typeof this.voluationCheckBox != 'function'){
        eTool.prototype.voluationCheckBox = function(x,formParts){
            for(var i=0;i<formParts.length;i++){
                var singleFormPart = $(formParts[i]);
                var valueArr = this.dataJson[x].split(this.separator),singleValue=singleFormPart.val();
                for(var j=0;j<valueArr.length;j++){
                    if(singleValue==valueArr[j]){
                        singleFormPart.attr('checked','true')
                    }
                }
            }
        }
    }
}